/*
 * Copyright (c) 2002-2007, Mairie de Paris
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 *  1. Redistributions of source code must retain the above copyright notice
 *     and the following disclaimer.
 *
 *  2. Redistributions in binary form must reproduce the above copyright notice
 *     and the following disclaimer in the documentation and/or other materials
 *     provided with the distribution.
 *
 *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
 *     contributors may be used to endorse or promote products derived from
 *     this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 *
 * License 1.0
 */
package fr.paris.lutece.plugins.customisation.business.portlet;

import fr.paris.lutece.portal.business.portlet.Portlet;


/**
 * This class represents business objects PersonalPortlet.
 */
public abstract class PersonalPortlet extends Portlet
{
    private int _nIdTab;
    private String _strUserName;
    private int _nModeDefault;
    private int _nStatusPortlet;
    private int _nCount;
    private int _nCountUser;
    private String _strPageName;

    /**
     * Returns the page name of a portlet
     *
     * @return the page name of a portlet
     */
    public String getPageName(  )
    {
        return _strPageName;
    }

    /**
     * Sets the page name of the portlet.
     *
     * @param strPageName the new name
     */
    public void setPageName( String strPageName )
    {
        _strPageName = strPageName;
    }

    /**
     * Returns the count of portlet's presence by different user
     *
     * @return the count of portlet's presence by different user
     */
    public int getCountUser(  )
    {
        return _nCountUser;
    }

    /**
     * Sets the count of the portlet by different user to the specified int.
     *
     * @param nCountUser the new count
     */
    public void setCountUser( int nCountUser )
    {
        _nCountUser = nCountUser;
    }

    /**
     * Returns the count of portlet's presence
     *
     * @return the count of portlet's presence
     */
    public int getCount(  )
    {
        return _nCount;
    }

    /**
     * Sets the count of the portlet to the specified int.
     *
     * @param nCount the new count
     */
    public void setCount( int nCount )
    {
        _nCount = nCount;
    }

    /**
     * Returns the identifier of this tab
     *
     * @return the tab identifier
     */
    public int getTabId(  )
    {
        return _nIdTab;
    }

    /**
     * Sets the identifier of the tab to the specified int.
     *
     * @param nIdTab the new identifier
     */
    public void setTabId( int nIdTab )
    {
        _nIdTab = nIdTab;
    }

    /**
     * Returns the identifier of the user
     *
     * @return the user identifier
     */
    public String getUserId(  )
    {
        return _strUserName;
    }

    /**
     * Sets the identifier of the user to the specified String.
     *
     * @param strUserName the new identifier
     */
    public void setUserId( String strUserName )
    {
        _strUserName = strUserName;
    }

    /**
     * Returns the mode of the portlet
     *
     * @return the user identifier
     */
    public int getModeDefault(  )
    {
        return _nModeDefault;
    }

    /**
     * Sets the mode of the portlet to the specified int.
     *
     * @param nModeDefault the new mode
     */
    public void setModeDefault( int nModeDefault )
    {
        _nModeDefault = nModeDefault;
    }

    /**
     * Returns the status of the portlet
     *
     * @return the status
     */
    public int getStatusPortlet(  )
    {
        return _nStatusPortlet;
    }

    /**
     * Sets the status of the portlet to the specified int.
     *
     * @param nStatusPortlet the new status
     */
    public void setStatusPortlet( int nStatusPortlet )
    {
        _nStatusPortlet = nStatusPortlet;
    }

    //    /**
    //     * Returns portlet's content
    //     * 
    //     * @return The content of a portlet
    //     */
    //    public String getContentPortlet(  )
    //    {
    //    	return _strContent;
    //    }
    //    
    //    /**
    //     * Sets the content of a portlet
    //     * 
    //     * @param strContent the new content
    //     */
    //    public void setContentPortlet( String strContent )
    //    {
    //    	_strContent = strContent;
    //    }
}
